package com.probiz.estore.content.service.impl;

import com.probiz.estore.common.model.content.ContentStat;
import com.probiz.estore.core.service.impl.GenericManagerImpl;
import com.probiz.estore.content.service.ContentStatManager;
import com.probiz.estore.content.dao.ContentStatDao;


/**
 * Manager implementation for ContentStat, responsible for business processing, and communicate between web and persistence layer.
 */
public class ContentStatManagerImpl extends GenericManagerImpl<ContentStat> implements ContentStatManager {

	private ContentStatDao contentStatDao = null;

	/**
	 * @param contentStatDao
	 *            the contentStatDao to set
	 */
	public void setContentStatDao(ContentStatDao contentStatDao) {
		this.contentStatDao = contentStatDao;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.service.impl.GenericManagerImpl#init()
	 */
	@Override
	protected void initManager() {
		dao = contentStatDao;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.service.impl.GenericManagerImpl#onDelete(java.lang.Object)
	 */
	@Override
	protected void preDelete(ContentStat entity) {

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.service.impl.GenericManagerImpl#onSave(java.lang.Object)
	 */
	@Override
	protected void preSave(ContentStat entity) {

	}

}
